package
{
	import cse481d.Logger;
	
	/**
	 * Wrapper for Logger
	 * CIDS that have been used so far:
	 * 0 : Debugging purpose and free dumps
	 * 1 : Alpha
	 * 2 : Alpha with partially working HeatMap
	 * 3 : Beta logging test dumps
	 * 4 : Beta release for Newgrounds
	 * 5 : Beta release for Newgrounds 1.1 (TEST)
	 * 6 : Beta release for Newgrounds 1.1 (TEST2)
	 * 7 : Beta release for Newgrounds 1.1
	 * 8 : Beta testing build 1.21 test dumps
	 * 9 : Test dump for final release v1.0
	 * 10: Final release v1.0 Kongregate
	 * 11: Final release v1.0 Newgrounds
	 *
	 * @author JAC
	 */
	public final class LoggerWrapper
	{
		// Set this to true to disable logging completely
		public static const DISABLED:Boolean = true;
		
		// IDs for Ghost of the Tombs
		public static const GID:uint = 36;
		public static const NAME:String = "ghost";
		public static const SKEY:String = "e20959489ce574dbb6f45966feaa490e";
		
		// Set CID here for different releases of the game
		public static const CID:uint = 10;
		
		// The wrapped Logger
		public static const logger:Logger = DISABLED ? null : Logger.initialize(GID, NAME, SKEY, CID, null);
		
		public static function logLevelStart(qid:int, data:Object):void
		{
			if (DISABLED)
			{
				return;
			}
			
			logger.logLevelStart(qid, data);
		}
		
		public static function logAction(aid:int, data:Object):void
		{
			if (DISABLED)
			{
				return;
			}
			
			var dataArray:Array = new Array();
			dataArray.push(data);
			
			logger.logAction(aid, dataArray);
		}
		
		public static function logLevelEnd(data:Object):void
		{
			if (DISABLED)
			{
				return;
			}
			
			logger.logLevelEnd(data);
		}
	}
}